//
//  DailyInformationModel.m
//  Taste
//
//  Created by 徐昊 on 16/9/12.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "DailyInformationModel.h"
#import "DailyInformationRes.h"
@implementation DailyInformationModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"res"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DailyInformationRes *res = [DailyInformationRes modelWithDic:dic];
            [array addObject:res];
        }
        _res = array;
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"res" : [DailyInformationRes class]};
}
@end



